﻿<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="../../common/jsp/taglibs.jsp"%>
<!-- 
    Copyright (C)  2011  chen wei hua.
    Permission is granted to copy, distribute and/or modify this document
    under the terms of the GNU Free Documentation License, Version 2.0
    or any later version published by the Free Software Foundation;
    with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.
    A copy of the license is included in the section entitled "GNU Free Documentation License".
 -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns="http://www.w3.org/1999/xhtml"><HEAD><TITLE>仓库管理-月度库存盘点</TITLE>
<META content="text/html; charset=utf-8" http-equiv=Content-Type>
<%@ include file="../../common/jsp/config.jsp"%>
<script type="text/javascript" src="common/js/calendar/WdatePicker.js" ></script>
<script type="text/javascript" src="common/js/jquery/chinaArea/jquery.fillOptions.js"></script>
<script type="text/javascript">
     function querySubmit() {
    	 $("#planDetailInfo").submit();
    	 return false;
     }
 	 $(document).ready(function() {
		$("#root_category").bind("change", function() {
			var parentId = $(this).val();
			$("#mid_category").fillOptions(
					"queryMaterialsCategoryJOSN.action?categoryId=" + parentId,
					{datatype:"json",text:"name",value:"id",jsonData:"categoryList"});
		});
	 });
</script>
</HEAD>
<BODY>
    <div class="subnav" align="left">
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
		  <tr>
			<td width="100%" align="left" height="31">&nbsp;<img src="common/images/title-pk.gif" border="0"  align="absmiddle"/>&nbsp;<span class="subnavtxt1">仓库管理</span>
			&nbsp;<img src="common/images/leftico2.gif" border="0"  align="absmiddle"/>&nbsp;<span class="subnavtxt2">月度库存盘点</span></td>
		  </tr>
		</table>
    </div>
   <div class="divborder">
      <s:form action="planDetailInfo">
        <table width="100%" border="0" cellspacing="1" cellpadding="3">
          <tr>
            <td width="10%" align="right">月份</td>
            <td width="25%">
				<s:textfield name="condition.queryDate" onclick="WdatePicker({dateFmt:'yyyy-MM'})" readonly="true" size="10" />
			</td>
	          <td width="10%" align="right">分类</td>
	          <td width="30%">
	          	<s:select id="root_category"
	          		name="condition.rootCategory"
	          		list="rootCategoryList"
	          		listKey="id"
	          		listValue="name"
	          		headerKey="-1"
	          		headerValue="-请选择-" />
	          	<s:select id="mid_category"
	          		name="condition.category"
	          		list="categoryList"
	          		listKey="id"
	          		listValue="name"
	          		headerKey="-1"
	          		headerValue="-请选择-" />
	          </td>
            <td align="right"><input name="button" type="button" class="input1" value="查 询" onclick="querySubmit()"/></td>
          </tr>
        </table>
      </s:form>
    </div>
  <div class="ksglxx2">
      <table width="100%" cellpadding="0" cellspacing="1" border="0" class="ksglxx2a">
        <tr class="ksglxx2bg">
          <th width="10%" >编码</th>
          <th width="8%" >大分类</th>
          <th width="8%" >中分类</th>
          <th width="8%" >名称</th>
          <th width="15%" >规格</th>
          <th width="5%" >单位</th>
		  <th width="8%" >批号</th>
		  <th width="8%" >数量</th>
		  <th>实际数量</th>
		</tr>
		<s:iterator value="planDetails" id="detail" status="st">
	      <s:if test="#st.Odd">
	        <tr class="odd">
	      </s:if >
	      <s:else>
	        <tr class="even">
	      </s:else>
              <td><s:property value="#detail.productNo" /></td>
              <td><s:property value="#detail.productRootCategory" /></td>
              <td><s:property value="#detail.productCategory" /></td>
              <td><s:property value="#detail.productName" /></td>
              <td><s:property value="#detail.productType" /></td>
              <td><s:property value="#detail.unit" /></td>
              <td><s:property value="#detail.number" /></td>
              <td><s:property value="#detail.batchNo" /></td>
	        </tr>
	    </s:iterator>
       </table>
      </div>
	 <div class="main">
		<table width="100%" border="0" cellpadding="5" cellspacing="0" class="gr-text1">
		   <tr>
			 <td align="right">
			   <input onclick=javascript:window.location.href='newMonthPlan.action?queryDate=<s:property value="queryDate" />' type="button" value="添加计划" class="input1" />
			 </td>
		   </tr>
	   </table>
	</div>
</BODY></HTML>
